# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=aranea
pkgver=6.469b9ee
pkgrel=3
groups=('blackarch' 'blackarch-spoof')
pkgdesc='A fast and clean dns spoofing tool.'
arch=('any')
url='https://github.com/TigerSecurity'
license=('custom:unknown')
depends=('libpcap')
makedepends=('git')
source=("git+https://github.com/TigerSecurity/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
}

